package com.nervenets.template.service;

import com.nervenets.general.entity.Selection;
import com.nervenets.general.service.CacheableService;
import com.nervenets.template.hibernate.domain.user.Manager;
import com.nervenets.template.hibernate.domain.user.RoleGroup;

import java.util.List;

public interface ManagerService extends CacheableService<Manager> {
    Manager findByMobile(String mobile);

    long countByRoleGroupsId(RoleGroup roleGroup);

    List<Manager> findAllByRoleGroup(RoleGroup roleGroup);

    List<Selection> selections();
}
